/**
 * Copyright © 2013 Creativor Studio.
 * About license information, please see LICENSE.txt.
 */
package org.creativor.rayson.util;

import org.creativor.rayson.api.Protocol;
import org.creativor.rayson.api.exception.IllegalProtocolException;

import com.sun.istack.internal.NotNull;

/**
 * Utility used to do RPC relative works.
 * 
 * @author creativor
 */
public final class RpcUtil {

	/**
	 * Verify that whether one RPC protocol class is a legal one.
	 * 
	 * @param protocol
	 *            Protocol class.
	 * @throws IllegalProtocolException
	 *             If the protocol class is illegal.
	 */
	public static void verifyProtocol(
			@NotNull final Class<? extends Protocol> protocol)
			throws IllegalProtocolException {
		LangUtil.testNullArgument(protocol, "Protocol class");
		// TODO: implement me.
	}

	private RpcUtil() {
		// Forbidden.
	}
}
